package wsl.parse;
import static wsl.tool.PrintTool.output;
import java.util.List;


public class Plant {
	private String common;
	private String botanical;
	private int zone;
	private String light;
	private double price;
	private double availability;
	
	public Plant(){
		
	}
	public Plant(String common, double price) {
		
		this.common = common;
		this.price = price;
	}
	
	public String getCommon() {
		return common;
	}
	public void setCommon(String common) {
		this.common = common;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String toString(){
		return "name:"+common+"  price:"+price;
	}
	public static double convertPrice4Cal(String price){
		return Double.valueOf(price.replaceAll("\\$", ""));
	}
	
	public static String convertPrice4View(double price){
		return "$"+price;
	}
	

}
